package org.dream.ui.chart;


import java.util.ArrayList;
import java.util.List;

import org.dream.domain.Daydeal;

/**
 * 股票数据源
 * @author qiuriyuchen E-mail:panpan_001@126.com
 */
public class StockDataSeries implements IDataSeries {
	protected List<Double> xData = new ArrayList<Double>();
	protected List<Daydeal> yData = new ArrayList<Daydeal>();

	public StockDataSeries() {
		

	}

	public Object getXData(int index) {
		return xData.get(index);
	}

	public Object getYData(int index) {
		return yData.get(index).getCLOSE();
	}

	public int size() {
		return xData.size();
	}
}
